package com.gosling.cloudspace.common.utils;

/**
 * 排除SSL证书校验
 * @author lihonglin
 * @date 2022/11/28 20:42
 */
public class TrustAllTrustManager implements javax.net.ssl.TrustManager, javax.net.ssl.X509TrustManager {
 
    @Override
    public java.security.cert.X509Certificate[] getAcceptedIssuers() {
        return null;
    }
 
    @Override
    public void checkServerTrusted(java.security.cert.X509Certificate[] certs, String authType) throws java.security.cert.CertificateException {
        return;
    }
 
    @Override
    public void checkClientTrusted(java.security.cert.X509Certificate[] certs, String authType) throws java.security.cert.CertificateException {
        return;
    }
 
}